home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 6 / MacMania 6.toast / / Tools&Utilities / TouchMe 1.2□ / touchMe 1.2 Folder / touchMe source codes / CW11 PP source / source / Common Lib / CAppleGuideFile.h < prev    next >
Encoding:
Text File  |  1997-04-25  |  1.3 KB  |  44 lines  |  [TEXT/CWIE]

  1. // ==================================================
  2. //    CAppleGuideFile.h
  3. //    Copyright (C) 1997 Mizutori Tetsuya
  4. //    March 21, 1997, April 9, 1997
  5. // ==================================================
  6. //    All documents are pretty-printed in 10-point Geneva font.
  7.  
  8. #pragma once
  9.  
  10. #include <AppleGuide.h>
  11.  
  12.  
  13. class CAppleGuideFile {
  14.  
  15. public:
  16.  
  17.                     CAppleGuideFile();
  18.                     CAppleGuideFile( OSType inCreatorType );
  19.                     CAppleGuideFile( ConstStr255Param inFileName );
  20.     virtual             ~CAppleGuideFile();
  21.  
  22.     // Check if Apple Guide is installed or not.
  23.     static Boolean        AppleGuideIsPresent( void );
  24.  
  25.     // Open the specified guide file located in the application's folder.
  26.     virtual AGErr        Open( void );
  27.  
  28. protected:
  29.  
  30.     // Find a default guide file in the same folder where the application is located.
  31. //    OSErr            FindGuideFile( void );
  32.     OSErr            FindGuideFile( ConstStr255Param inFileName );
  33.     OSErr            FindGuideFile( OSType inAppCreatorType );
  34.  
  35. private:
  36.     Str63            mGuideFilename;            // A particular Apple Guide file name
  37.     Boolean            mGotGuideFile;            // true if mGuideFile is valid.
  38.     FSSpec            mGuideFileFSSpec;        // A file spec of the guide file.
  39.     OSType            mGuideCreatorType;        // An application creator type.
  40.     AGRefNum            mGuideFileRefNum;        // A reference number of opened guide file.
  41. };
  42.  
  43. // end of definitions
  44.